﻿# encoding: utf-8
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

#id = 1
Category.create(name: 'Văn học Việt Nam', created_at: DateTime.current , updated_at: DateTime.current)
#id = 2
Category.create(name: 'Văn học nước ngoài', created_at: DateTime.current , updated_at: DateTime.current)
#id = 3
Category.create(name: 'Ngoại ngữ', created_at: DateTime.current , updated_at: DateTime.current)
#id = 4
Category.create(name: 'Khoa học máy tính', created_at: DateTime.current , updated_at: DateTime.current)
#id = 5
Category.create(name: 'Kỹ thuật máy tính', created_at: DateTime.current , updated_at: DateTime.current)
#id = 6
Category.create(name: 'Điện-Điện tử', created_at: DateTime.current , updated_at: DateTime.current)
#id = 7
Category.create(name: 'Cơ khí - Chế tạo máy', created_at: DateTime.current , updated_at: DateTime.current)

Book.create(name: 'Beginning Rails 3' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/BeginningRails3_ClovesCarneiro_RidaAlBarazi.jpg',author:'Cloves Carneiro - Rida Al Barazi',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Chị ơi anh yêu em' , category_id: 1, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/chioianhyeuem_cusiu.jpg',author:'Cusiu',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Chí Phèo' , category_id: 1, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/chipheo_namcao.jpg',author:'Nam Cao',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Computer Networking A Top-Down Approach' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/ComputerNetworkingATopDownApproach_KuroseRoss.jpg',author:'Kurose Ross',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Computer Security - Art and Science' , category_id: 5, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/ComputerSecurityArtAndScience_MattBishop.jpg',author:'Matt Bishop',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Cơ sở kỹ thuật cơ khí' , category_id: 7, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/cosokythuatcoky_DoXuanDinh.jpg',author:'Đỗ Xuân Định',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Cuốn theo chiều gió' , category_id: 2, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/cuontheochieugio_magaretmitchell.jpg',author:'Magaret Mitchell',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Data Mining Concepts and Techniques' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/data-mining-concepts-and-techniques-JiaweiHan-MichelineKamber-JianPei.jpg',author:'Jiawei Han-Micheline Kamber-Jian Pei',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Dế mèn phiêu lưu ký' , category_id: 1, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/demenphieuluuky_tohoai.jpg',author:'Tô Hoài',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'English Collocations in Use' , category_id: 3, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/english-collocations-in-use_MichaelMcCarthy.png',author:'Michael McCarthy',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'English Grammar In Use' , category_id: 3, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/englishgrammarinuse_RaymondMurphy.jpg',author:'Raymond Murphy',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'English Vocabulary In Use' , category_id: 3, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/englishvocabularyinuse_MichaelMcCarthy.jpg',author:'Michael McCarthy',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Java How to program,9th edition' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/javahowtoprogram_deitel.jpg',author:'Deitel',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Kỹ thuật điện tử số' , category_id: 6, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/KyThuatDienTuSo.jpg',author:'Nguyễn Kim Giao',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Maintenance Fundamentals' , category_id: 7, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/maintenancefundamentals_KeithMobley.png',author:'Keith Mobley',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Ông già và biển cả' , category_id: 2, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/OngGiaVaBienCa_ErnestHemingway.jpg',author:'Ernest Hemingway',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Operating Systems - Internals and Design Principles' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/OperatingSystems_InternalsandDesignPrinciples_WilliamStallings.jpg',author:'William Stallings',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Programming RuBy - The Pragmatic Programmer\'s Guide' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/ProgrammingRuBy_ThePragmaticProgrammersGuide_DaveThomas.jpg',author:'Dave Thomas',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Ship or Sheep' , category_id: 3, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/shiporsheep_AhnBaker.jpg',author:'Ahn Baker',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Tắt đèn' , category_id: 1, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/tatden_ngotatto.jpg',author:'Ngô Tất Tố',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Thiết kế máy biến áp điện lực' , category_id: 6, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/ThietKeMayBienApDienLuc_PhanTuThu.jpg',author:'Phan Tử Thụ',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Tiếng chim hót trong bụi mận gai' , category_id: 2, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/tiengchimhottrongbuimangai_ColleenMcCullough.jpg',author:'Colleen McCullough',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Trí tuệ nhân tạo - Lập trình tiến hóa' , category_id: 4, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/trituenhantaolaptrinhtienhoa_nguyendinhthuc.jpg',author:'Nguyễn Đình Thúc',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Truyện Kiều' , category_id: 1, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/truyenkieu_nguyendu.jpg',author:'Nguyễn Du',created_at: DateTime.current , updated_at: DateTime.current)
Book.create(name: 'Xin lỗi em chỉ là con đĩ' , category_id: 2, description:'',numbers: 20,numbers_to_borrow:0,view:0,link:'books/xinloiemchilacondi_taodinh.jpg',author:'Tào Đình',created_at: DateTime.current , updated_at: DateTime.current)
